<?php
require_once "easygd.php";
$egd = new EasyGD;
$egd->startFromFile('easygd.jpg');
$teste = $egd->egdResource;
$egd->width(100);
$egd->save('teste.'.$egd->egdExt);
$egd->startFromResource($teste, $egd->egdExt, $egd->egdFileName);
$egd->display();
?>